#ifndef OUTER_H
#define OUTER_H

#include <QObject>
#include <QTimer>

#include <future>
#include <iostream>
#include <string>
#include <thread>

#include "zmq.hpp"
#include "zmq_addon.hpp"


class outer: public QObject
{
    Q_OBJECT
public:
    outer();

    zmq::context_t context{1};
    zmq::socket_t publisher;

    QTimer timer;
private slots:
    void pubmessage();
signals:
    void sendout(std::string data);
};

#endif // OUTER_H
